package cn.guizhou001.demo.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fengli
 * @Description: TODO
 * @date 2018年06月28日 14:47
 */
public class MessageUtils {

    public static Map<String, Object> modelMap(Object data) {
        return modelMap(200, data);
    }

    public static Map<String, Object> modelMap(Integer code, Object data) {
        Map<String, Object> modelMal = new HashMap<>();
        modelMal.put("code", code);
        modelMal.put("data", data);
        return modelMal;
    }
}